package cate.game.activity.firstpay.msg;

import cate.game.activity.firstpay.SuperFirstPayLevel;
import cate.game.activity.firstpay.SuperFirstPayPO;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBActivity;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "超值首充-信息 返回")
public class SuperFirstPayInfoResp implements MsgOutput {
    @NoteField(value = "当前累计充值数")
    public long payNum;
    @NoteField(value = "各档位信息")
    public Map<Integer, SuperFirstPayLevel> levels;

    @Override
    public MsgConfig conf() {
        return MsgIdBActivity.ACT_SUPER_FIRST_PAY_INFO_RESP;
    }

    public SuperFirstPayInfoResp() {}

    public SuperFirstPayInfoResp(long payNum, SuperFirstPayPO po) {
        this.payNum = payNum;
        levels = po.levels;
    }
}
